#include <hello.h>

hello::hello()
{
    std::cout<<"construct of hello."<<std::endl;
    temp = new char[1000];
}

void hello::say()
{
    std::cout<<"I am lib Hello!"<<std::endl;
}
hello::~hello()
{
    std::cout<<"deconstruct of hello."<<std::endl;
    delete [] temp;
}

void test()
{
    std::cout<<"I am lib test"<<std::endl;
}

hello *create()
{
    return new hello();
}

void destory(hello *p)
{
    delete p;
}

#ifdef BIN
int main()
{
    hello obj;
    obj.say();
    test();
    std::cout<<"I am lib main"<<std::endl;

    return 0;
}
#endif
